// 代码块 importM
import 'package:flutter/material.dart';

import './myFont.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text("Flutter app"),
        ),
        body: const MyHomePage(),
      ),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return ListView(
      padding: const EdgeInsets.fromLTRB(0, 10, 0, 0),
      children: <Widget>[
        ListTile(
          leading: Image.network(
              "https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain"),
          title: const Text("我是标题"),
          subtitle: const Text('我是副标题'),
        ),
        const Divider(),
        ListTile(
          leading: Image.network(
              "https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain"),
          title: const Text("我是标题"),
          subtitle: const Text('我是副标题'),
        ),
        const Divider(),
        ListTile(
          leading: Image.network(
              "https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain"),
          title: const Text("我是标题"),
          subtitle: const Text('我是副标题'),
        ),
        const Divider(),
        ListTile(
          title: const Text("我是标题"),
          subtitle: const Text('我是副标题'),
          trailing: Image.network(
              "https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain"),
        ),
        const Divider(),
      ],
    );
  }
}
